# test_wx.py
import wx
def onClick(event):
    print("按钮被点击了")
app = wx.App()
frm = wx.Frame(None,title="python",size=(400,400),pos=(1000,500))
frm.Show()
pl=wx.Panel(frm,size=(200,200),pos=(100,100))
pl.Show()
staticText=wx.StaticText(pl,label="欢迎",pos=(100,100))
staticText.Show()
btn=wx.Button(pl,label="测试按钮",pos=(0,0))
btn.Show()
frm.Bind(wx.EVT_BUTTON,onClick,btn)
app.MainLoop()
